Skip to content

tween() and extended lerp_functions - #57

Open
godmothersfire wants to merge 7 commits into
ffrostfall:mainfrom
teamfireworks:main
Open

tween() and extended lerp_functions#57
godmothersfire wants to merge 7 commits into
ffrostfall:mainfrom
teamfireworks:main

Conversation

@godmothersfire

Copy link
Copy Markdown
  • Added fluid.tween(input, tween_info)
  • Added animation support for CFrame, ColorSequenceKeypoint, DateTime, NumberRange, NumberSequenceKeypoint, PhysicalProperties, Ray, Rect, Region3, Vector2, and Vector3
  • Exported Animatable type

Some code is based on Fusion, shouldn't be too significant

@godmothersfire

Copy link
Copy Markdown
Author

okay i missed that theres a stale tween pr already, oops

@godmothersfire

Copy link
Copy Markdown
Author

okay turns out tween doesnt work yet, ill fix it this weekend

@alicesaidhi

Copy link
Copy Markdown
Collaborator

can you make a separate PR for tween?

Comment thread src/anim/lerp.luau

local function general_lerp(a: any, b: any, t: number): any
return a + (b - a) * t
function lerp_functions.Color3(initial: Color3, goal: Color3, ratio: number)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can u just put everything inside the table for lerp_functions rather than doing function.x

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants